package com.eques.util

import com.eques.demo.R
import com.eques.icvss.core.module.user.BuddyType

class RoleUtils private constructor() {
    companion object {
        private val INSTANCE = RoleUtils()

        fun getInstance(): RoleUtils {
            return INSTANCE
        }
    }

    fun getRole(role: Int): Int {
        return when (role) {
            BuddyType.TYPE_WIFI_DOOR_WS2 -> R.mipmap.add_pet_feeder
            BuddyType.TYPE_WIFI_DOOR_VL5_SC,
            BuddyType.TYPE_WIFI_DOOR_VL8XP,
            BuddyType.TYPE_WIFI_DOOR_VL8,
            BuddyType.TYPE_WIFI_DOOR_VM5_T,
            BuddyType.TYPE_WIFI_DOOR_VM5,
            BuddyType.TYPE_WIFI_DOOR_VL4,
            BuddyType.TYPE_WIFI_DOOR_VM2C,
            BuddyType.TYPE_WIFI_DOOR_VM2CN -> R.mipmap.add_smartlock
            BuddyType.TYPE_WIFI_DOOR_VM6 -> R.mipmap.plug_list
            else -> R.mipmap.newui_t1_icloud // 添加默认返回值以处理未定义的情况
        }
    }
}
